package com.mobilekites.api.model;

import java.util.ArrayList;
import java.util.List;

public abstract class BucketedList<T> extends PaginatedList<T> {

	protected BucketedList(int page, boolean autoLoadNextPage) {
		super(page, autoLoadNextPage);
		mBuckets = new ArrayList<T>();
	}

	protected BucketedList(int page) {
		this(page, true);
	}

	protected List<T> mBuckets;

	public int getBucketCount() {
		return mBuckets.size();
	}

	public List<T> getBucketList() {
		return mBuckets;
	}
}